<style>
    table.reference, table.tecspec {
        border-collapse: collapse;
        width: 100%;
        font-size: 100%;
        font-family: verdana,helvetica,arial,sans-serif;
    }
    table.reference th {
        color: rgb(255, 255, 255);
        background-color: rgb(85, 85, 85);
        border: 1px solid rgb(85, 85, 85);
        font-size: 12px;
        padding: 3px;
        vertical-align: top;
        text-align: left;
    }
    table.reference td {
        border: 1px solid rgb(212, 212, 212);
        padding: 7px 5px;
        vertical-align: top;
    }
</style>
<!--Nội dung cột bên phải -->
<div class="contentRight-2">
    <div class="boxShadowRight-3">
        <div class="boxRightTop-3">
        </div>
        <div class="boxRighMiddle-3" style="min-height: 630px;">
            <div class="lineTitleRight-1">
                <div class="book_bg">              
                    <span>
                        Danh Sách Tài Liệu Đăng Ký Mượn Online
                    </span>
                </div>
                <?php if(isset($bookOrder)):?>
                <table class="reference">
                    <thead>
                        <tr>
                            <th style="width:15%">Mã tài liệu</th>
                            <th style="width:70%">Mô tả</th>
                            <th style="width:15%">Trạng thái</th>
                        </tr>
                    <tbody>
                        <?php foreach ($bookOrder as $row) : ?>
                            <tr>
                                <td><?php echo $this->escapeHtml($row->bookBarcode.'-'.$row->serial); ?></td>
                                <td>
                                    <?php
                                    echo $this->escapeHtml($row->title . ' / ' . $allAuthor[$row->bookBarcode] . ' / Số trang: ' . $row->numberOfPages . ' / ' . $row->publisher . ' / Giá: ' . $row->price);
                                    ?>
                                </td>
                                <td>
                                    <?php
                                        if($row->orderStatus == 0) echo "Đang xử lý";
                                        else if($row->orderStatus == -1)
                                            echo "Từ chối";
                                        else echo "Chấp nhận";
                                    ?>
                                </td>
                            </tr>
                        <?php endforeach; ?>
                    </tbody>
                    </thead>
                </table>
                <?php else:?>
                <h1 style="text-align: center; color: red;">Không có tài liệu nào</h1>
                <?php endif;?>
            </div>
            <div style="margin: 500px 8px 8px 8px">
            </div>
            <div class="boxRighBottom-3">

            </div>
        </div>
    </div>
</div>